from kiwi.core.learner import Classifier
from kiwi.core.base import Instances, Instance 
from kiwi.numalgo import popularity 
import numpy as np
import scipy as sp
import matplotlib.pyplot as plt

#*****************************************************************************
# PURPOSE: 
# USAGE:   
# PASSED ARGS:  
# RETURN ARGS: 
# Error - Fail Error Message
#*****************************************************************************
class LDA( Classifier ):
	#*****************************************************************************
	# PURPOSE: 
	# USAGE:   
	# PASSED ARGS:  
	# RETURN ARGS: 
	# Error - Fail Error Message
	#*****************************************************************************	
	def buildClassifier( self, instances ):
		rows = instances.rows( )
		cols = instances.cols( ) - 1
		classIndex = instances.getTargetIndex( )
		trainIndex = instances.getNonTargetIndex( )		
		classSet= instances[:,classId]
		trainSet = instances[:,trainIndex]

#*****************************************************************************
# PURPOSE: 
# USAGE:   
# PASSED ARGS:  
# RETURN ARGS: 
# Error - Fail Error Message
#*****************************************************************************	
class Fisher( Classifier ):
	#*****************************************************************************
	# PURPOSE: 
	# USAGE:   
	# PASSED ARGS:  
	# RETURN ARGS: 
	# Error - Fail Error Message
	#*****************************************************************************	
	def setGroupDefination( self, defination ):
		self.setParam("GroupDefination", defination.copy() )
	
	def getGroupDefination( self, "" ):
	
	#*****************************************************************************
	# PURPOSE: 
	# USAGE:   
	# PASSED ARGS:  
	# RETURN ARGS: 
	# Error - Fail Error Message
	#*****************************************************************************	
	def buildClassifier( self, instances ):
		


		

